import request from '@/utils/request'

// 查询合同业务分类列表
export function listContractBusinessType(query) {
  return request({
    url: '/person/contractBusinessType/list',
    method: 'get',
    params: query
  })
}

// 查询合同业务分类列表
export function listDTOContractBusinessType(query) {
  return request({
    url: '/person/contractBusinessType/listDTO',
    method: 'get',
    params: query
  })
}

// 根据合同类型id 查询业务分类
export function listBycontractTypeId(query) {
  return request({
    url: '/person/contractBusinessType/listBycontractTypeId',
    method: 'get',
    params: {contractTypeId: query}
  })
}

// 查询合同业务分类详细
export function getContractBusinessType(id) {
  return request({
    url: '/person/contractBusinessType/' + id,
    method: 'get'
  })
}

// 新增合同业务分类
export function addContractBusinessType(data) {
  return request({
    url: '/person/contractBusinessType',
    method: 'post',
    data: data
  })
}

// 修改合同业务分类
export function updateContractBusinessType(data) {
  return request({
    url: '/person/contractBusinessType',
    method: 'put',
    data: data
  })
}

// 删除合同业务分类
export function delContractBusinessType(id) {
  return request({
    url: '/person/contractBusinessType/' + id,
    method: 'delete'
  })
}
